package com.htdata.iiot.api.tsdb;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.htdata.iiot.api.tsdb.bean.DeviceNumber;

public class sasas {

	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		/*SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
		String startTime = sdf.format(new Date());
		System.out.println(startTime);
		
		
		//1,14,74
		String hexString = new DeviceNumber(1,16,82).toHexString();
		String base64String = new DeviceNumber(1,14,74).toBase64String();
		
		System.out.println(hexString);
		System.out.println(base64String);
		
		//AAAAAQAAAA4AAAAAAAAASg== 
		//00000001000000100000000000000052
		
		DeviceNumber deviceNumber = DeviceNumber.fromHexString("00000001000000100000000000000052");
		System.out.println(deviceNumber.getMetricIdLong());*/
		long startTime = new Date().getTime()/1000;
		long endTimeL = startTime+60*30;
		for (; startTime < endTimeL;) {
			double v = startTime*3%199*0.1;
			System.out.println(startTime+"___"+v);
			startTime = startTime + 3;
		}
	}
}
